package com.fhzz.model;

public class Result {
	
	private int code;
	
	private String message;
	
	private Object data;
	
	
	public static Result success() {
		Result result = new Result();
		result.setCode(200);
		result.setMessage("success");
		return result;
	}
	
	public static Result fail() {
		Result result = new Result();
		result.setCode(500);
		result.setMessage("error");
		return result;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	
	
	
}
